<?php

/*
 * 2021/7/16
 * 9:34
 * User: 2650332702@qq.com
 */

namespace App\Api\Models;


use Illuminate\Database\Eloquent\Model;

class Comments extends Model
{
    protected $table = 'cmc_goods_evaluate';

    //根据ID获取评论内容
    static public function getAllComment($id)
    {
        return Comments::where('id',$id)->get()->toArray()[0];
    }
}
